home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global ppl, advance, foes
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) + 17
- if sprite(getAt(ppl, 1)).flipH = 0 then
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) + 17
- else
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) - 17
- end if
- if (advance = 13) or (advance = 14) then
- if getAt(foes, 2) < 116 then
- setAt(foes, 2, 122)
- chkhit(getAt(ppl, 3), 116, 122, 3, 2, 138)
- end if
- if getAt(foes, 1) < 87 then
- setAt(foes, 1, 94)
- chkhit(getAt(ppl, 2), 87, 94, 2, 1, 137)
- end if
- else
- if (advance = 15) and (getAt(foes, 1) < 271) then
- setAt(foes, 3, 280)
- chkhit(getAt(ppl, 4), 271, 280, 4, 3, 294)
- else
- if (advance = 16) or (advance = 17) then
- if getAt(foes, 3) < 271 then
- setAt(foes, 3, 280)
- chkhit(getAt(ppl, 4), 271, 280, 4, 3, 294)
- end if
- if getAt(foes, 2) < 116 then
- setAt(foes, 2, 122)
- chkhit(getAt(ppl, 3), 116, 122, 3, 2, 138)
- end if
- end if
- end if
- end if
- end
-